from  django.urls import converters

#  用户名的转换器
class UsernameConverter:
    regex = '[a-zA-Zθ-9_-]{5,20}'


    def to_python(self, value):
        return value